<template>
  <div class="warpc">
    <div class="top">
       <van-sticky >
        <div class="header" >
            <div class="header-content">
                <div class="header-back">
                    <img src="yangchaung/images/jt.png" alt="" @click="fungo">
                    <!-- <span>宠物宠物店</span> -->
                </div>
                <div class="header-icon">
                        <img src="yangchaung/Detimg/xx.png" alt="">
                        <img src="yangchaung/Detimg/fx.png" alt="">
                        <img src="yangchaung/Detimg/dddd.png" alt="">
                </div>
            </div>
        </div>
        </van-sticky>
    </div>
    <div class="setline"></div>
        <div class="setline1"></div>

        <div class="tcone">
          <div class="oneline">
            <van-icon name="shop-o" /><span>With The Cat  与猫 猫咖</span>
          </div>
          <p class="title">双人欢乐撸猫套餐（电话YuYue可发详细路线给您）</p>
          <div class="fd">
            <div class="fdcont">
              <div><van-icon name="passed" /><span>随时退</span></div>
              <div><van-icon name="passed" /><span>过期退</span></div>
              <div><van-icon name="passed" /><span>需预约</span></div>
            </div>
            <div>半年销量748</div>  
          </div>
          <div class="swipe">
            <van-swipe :loop="false" :width="145">
              <van-swipe-item><img src="yangchaung/Detimg/y1.jpg" alt=""></van-swipe-item>
              <van-swipe-item><img src="yangchaung/Detimg/y2.jpg" alt=""></van-swipe-item>
              <van-swipe-item><img src="yangchaung/Detimg/y3.jpg" alt=""></van-swipe-item>
              <van-swipe-item><img src="yangchaung/Detimg/y4.jpg" alt=""></van-swipe-item>
            </van-swipe>
          </div>
          <div class="specific">
            <p class="title">团购详情</p>
            <div class="page">
              <p><span>双人欢乐撸猫套餐</span></p>
              <p><span>团购价</span> <span>￥76</span></p>
            </div>
          </div>
          <div class="linebox"></div>
          <div class="buyknow">
            <p class="titlebuy">购买须知</p>
            <p class="buytitle">有效期：</p>
            <p class="buycontent">
              <span>购买后90天内有效</span>
            </p>
            <p class="buytitle">预约信息</p>
            <p class="buycontent"><span>请您提前1小时预约</span></p>
            <p class="buytitle">规则提醒</p>
            <p class="buycontent"><span>不再与其他优惠同享</span></p>
              <p class="buytitle">温馨提示</p>
            <p class="buycontent"><span>如需团购券发票，请您在消费时向商户咨询</span></p>
           
            <div class="morecontent" ref="morecontent1">
              <p class="buycontent"><span>商家提供免费wiFi</span></p>
              <p class="buycontent"><span>堂食外带均可，可免费打包</span></p>
              <p class="buycontent">
                <span>团购用户不可同时享受商家其他优惠</span>
              </p>
              <p class="buycontent">
                <span>酒水饮料等问题，请致电商家咨询，以商家反馈为准</span>
              </p>
              <p class="buycontent">
                <span>如部分菜品因时令或其他不可抗因素导致无法提供.</span>
              </p>
              <p class="buycontent">
                <span>使用优惠券购买团单，有效期以优惠券规则为准</span>
              </p>
              <p class="buycontent">
                <span>无需预约，消费高峰期可能需要等位 价格和销量说明</span>
              </p>
            </div>
          </div>
        </div>
        <div class="linebox"></div>
        <div class="lastcontent">
          <p class="lasttitle">适用门店</p>
          <p class="lastname">With The Cat  与猫 猫咖</p>
          <div class="twopart">
            <div>
              <div class="laststart">
                <img
                  class="start"
                  src="chenkong/imgs/shopcenter/start.gif"
                  alt=""
                />
                <img
                  class="start"
                  src="chenkong/imgs/shopcenter/start.gif"
                  alt=""
                />
                <img
                  class="start"
                  src="chenkong/imgs/shopcenter/start.gif"
                  alt=""
                />
                <img
                  class="start"
                  src="chenkong/imgs/shopcenter/start.gif"
                  alt=""
                />
                <img
                  class="start"
                  src="chenkong/imgs/shopcenter/start.gif"
                  alt=""
                />
              </div>
            </div>
            <div>
              <div class="phone"><van-icon name="phone-o" /></div>
            </div>
          </div>
          <div class="adress">
            <div>
              <van-icon name="location-o" /><span
                >吉祥村momopark1号楼2单元701</span
              >
            </div>
            <van-icon name="arrow" />
          </div>
        </div>

    <div class="bottom"></div>
     <div class="warpcc">
    <div class="warpc-bx">
      <div class="content">
        <div class="left">
          <div>
            ￥<span class="price">76</span> <span class="gray">￥128</span>
          </div>
        </div>
        <div class="right" v-for="(v) in arr" :key="v.id" ><span @click="funs(v.title,v.groupPrice)">立即抢购</span></div>
      </div>
    </div>
  </div>
  </div>
</template>

<script>
import axios from "axios";

export default {
  components: {
  },

  data() {
    return {
      active: "",
      obj: [],
        arr:[
                {id:12123123234,title:"双人欢乐撸猫套餐（电话YuYue可发详细路线给您)",groupPrice:"76"},
            ]
    };
  },

  created() {
    let i = this.$route.query.shopid;
    // console.log(i);
    axios.request("http://localhost:8889/shoplistCK").then(({ data }) => {
      this.obj = data[i];
    });
  },
  mounted() {
    this.$nextTick(() => {
      this.$refs.morecontent1.style.display = "none";
    });
  },
  methods: {
    fun() {
      this.$nextTick(() => {
        this.$refs.morecontent1.style.display = "block";
      });
    },
    fungo() {
      this.$router.push("/yacdetailspage");
    },
    funs(id,title){ 
     this.$router.push({path:"/yacShopPage",query:{id:id,title:title}})
    }
  },
};
</script>
<style >
.van-swipe__indicator {
  display: none;
}
.van-swipe-item {
  width: 34.4vw;
}
</style>
<style lang="scss" scoped>

 .header{
        width:100vw;
        height:10.933vw;
        background: #fff;
        .header-content{
            width: 93.067vw;
            height: 10.933vw;
            margin: auto;
            .header-back{
                // width: 8.533vw;
                width: 35vw;
                height:  8.533vw;
                float: left;
                margin-top: 1.2vw;
                img{
                    width: 8.533vw;
                    height:  6.667vw;
                }
            }
            .header-icon{
                width: 34.467vw;
                height:  8.533vw;
                float: right;
                margin-top: 1.2vw;
                img{
                    height:  6.667vw;
                    margin-left: 4.8vw;
                }
            }
        }
   }
.warpc {
  margin-top: 5.333vw;
  width: 100%;

  ::v-deep .van-tab--active {
    color: #ee4636;
  }
  ::v-deep .van-tabs__line {
    height: 1.067vw;
    width: 22.933vw;
    border-radius: 0%;
    background: #ee4636;
  }
  .top {
    width: 95%;
    margin: auto;
    font-size: 3.733vw;
    display: flex;
    justify-content: space-between;
    line-height: 8.8vw;
    height: 8.8vw;

    .icon {
      font-size: 6.4vw;
      padding-left: 1.333vw;
    }
    .icon1 {
      padding-right: 3vw;
    }
  }
  .setline {
    width: 100%;
    height: 0.267vw;
    background: #f7f7f7;
  }
  .setline1 {
    width: 95%;
    margin: auto;
    height: 0.267vw;
    background: #f7f7f7;
  }
  .swipe {
    position: relative;
    // width: 90%;
    margin: auto;

    img {
      width: 37.333vw;
      height: 26.667vw;
      border: 1px solid #f7f7f7;
    }
  }
  .linebox {
    width: 100%;
    height: 2.133vw;
    background: #f6f6f6;
  }
  .tcone {
    width: 95%;
    margin: auto;
    // width: 3.2vw;
    font-size: 3.2vw;
    .oneline {
      padding: 3.733vw 0;
    }
    .title {
      font-size: 4.267vw;
      font-weight: bold;
    }
    .fd {
      display: flex;
      justify-content: space-between;
      padding: 1.867vw 0;
      .fdcont {
        display: flex;
        span {
          padding: 0 1.333vw;
        }
      }
    }
    .coloror {
      color: #ee4636;
      padding-bottom: 3.733vw;
    }
  }
  .specific {
    padding-bottom: 4vw;
    .title {
      font-size: 4.267vw;
      font-weight: bold;
      padding: 3.733vw 0;
    }
    .page {
      display: flex;
      justify-content: space-between;
      .tj {
        font-size: 2.667vw;
        color: #ee4636;
        padding: 0.267vw;
        border: 0.267vw solid #ee4636;
        margin-left: 2.667vw;
        line-height: 5.867vw;
      }
    }
  }
  .buyknow {
    .titlebuy {
      font-size: 4.267vw;
      font-weight: bold;
      line-height: 8.533vw;
    }
    .buytitle {
      color: #d8d8d8;
    }
    .buycontent {
      padding: 0.8vw 0 1.333vw 0.8vw;
    }
    .more {
      border-top: 1px solid #d8d8d8;
      height: 12.8vw;
      text-align: center;
      line-height: 12.8vw;
      color: #d8d8d8;
    }
  }
  .lastcontent {
    width: 95%;
    margin: auto;
    .lasttitle {
      font-size: 4.267vw;
      font-weight: bold;
      line-height: 8.533vw;
    }
    .lastname {
      font-size: 3.733vw;
      font-weight: bold;
      // line-height: 8.533vw;
    }
    .twopart {
      display: flex;
      justify-content: space-between;
      padding-bottom: 3.2vw;
      border-bottom: 1px solid #d8d8d8;
      .phone {
        width: 17.333vw;
        border-left: 1px solid #d8d8d8;
        text-align: center;
        color: #ee4636;
      }
    }
    .adress {
      display: flex;
      justify-content: space-between;
      font-size: 3.733vw;
      padding: 3.733vw 0;
    }
    .laststart {
      padding: 2.667vw 0;
      img {
        width: 3.2vw;
      }
    }
  }
  .bottom {
    height: 14.4vw;
  }
}


.warpcc {
  position: fixed;
  bottom: 0;
  background: #fff;
  width: 100%;
  border-top: 1px solid #d8d8d8;
  .warpc-bx {
    width: 95%;
    margin: auto;

    .content {
      display: flex;
      justify-content: space-between;
      height: 14.4vw;
      line-height: 14.4vw;
      font-size: 2.667vw;

      .left {
        color: #ed7044;
        .price {
          font-size: 6.267vw;
          font-weight: bold;
        }
        .gray {
          color: gray;
          text-decoration: line-through;
        }
      }
      .right {
        margin-top: 2vw;
        width: 38.4vw;
        height: 10.133vw;
        background: #ed7044;
        text-align: center;
        line-height: 10.133vw;
        color: #fff;
        border-radius: 999rem;
      }
    }
  }
}
</style>